<template>
	<view class="box">
		<view class="header" style="display: table;">
			<image
				style="width: 80px;height: 80px;border-radius: 50%;overflow: hidden;margin-top: 5px; margin-left: 5px;"
				src="../../static/logo.png"></image>
			<text class="userName" style="display: table-cell;vertical-align: middle;text-align: center;padding-left: 10px;">卷王</text>
		</view>
		<view class="body">
			<uni-card>
				<text style="color: #2979FF;margin-right: 200px;margin-left: 100px;">排行榜</text>
				<text>|</text>
				<text style="color: #2979FF;margin-left: 200px;">我的收藏</text>
			</uni-card>
			<!-- 设置栏 -->
			<uni-card title="信息设置">
				<uni-list v-for="(item,index) in setList" :key="index">
					<uni-list-item style="line-height: 50px;" :title="item.titleName" showArrow="true">
						<template slot="header">
							<image style="width: 50px; height: 50px;" :src="item.thumbUrl" mode="widthFix"></image>
						</template>
					</uni-list-item>
				</uni-list>
			</uni-card>
			<!--  -->
			<uni-card>
				<uni-list>
					<uni-list-item style="line-height: 50px;" title="分享小程序" showArrow="true">
						<template slot="header">
							<image style="width: 50px; height: 50px;" src="../../static/tabbar/returnCard.png" mode="widthFix"></image>
						</template>
					</uni-list-item>
					<uni-list-item style="line-height: 50px;" title="关注公众号" showArrow="true">
						<template slot="header">
							<image style="width: 50px; height: 50px;" src="../../static/tabbar/returnCard.png" mode="widthFix"></image>
						</template>
					</uni-list-item>
				</uni-list>
			</uni-card>
			<uni-list>
				<!-- <uni-list-item  title="列表文字" ></uni-list-item> -->
				<uni-list-item :disabled="true" title="版权"></uni-list-item>
			</uni-list>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				setList: [{
					thumbUrl: "../../static/tabbar/userInfo.png",
					titleName: "个人信息"
				}, {
					thumbUrl: "../../static/tabbar/posting.png",
					titleName: "我的发帖"
				}, {
					thumbUrl: "../../static/tabbar/returnCard.png",
					titleName: "我的回帖"
				}, {
					thumbUrl: "../../static/tabbar/install.png",
					titleName: "设置"
				}]
			}
		}
	}
</script>

<style>
	.box {
		background-color: #F7F7F7
	}
	.userName {
		/* display: flex; */
		font-size: larger;
		/* align-items: center; */
		/* justify-content: center; */
		margin-left: 20px;
		/* margin-bottom: 30px; */
	}
</style>
